home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / DynParticlesMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  4.8 KB  |  158 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. // Alias|Wavefront Script File
  19. // MODIFY THIS AT YOUR OWN RISK
  20. //
  21. // Creation Date:  13 April 1997
  22. // Author:         gf
  23. //
  24. //
  25. //  Procedure Name:
  26. //      DynParticlesMenu
  27. //
  28. //  Description:
  29. //        Create the DYNAMICS->Particles
  30. //
  31. //  Input Arguments:
  32. //      parent to parent the menu to.
  33. //
  34. //  Return Value:
  35. //      None.
  36. //
  37.  
  38. source spriteWizard.mel;
  39.  
  40. global proc DynParticlesMenu( string $parent )
  41. {
  42.     setParent -m $parent;
  43.     if( `menu -q -ni $parent` != 0 ) {
  44.         //
  45.         //    Menu is built already - just return
  46.         //
  47.         return;
  48.     }
  49.  
  50.     menuItem -l "Particle Tool" 
  51.         -annotation "Particle Tool: Create particles on the grid or live object"
  52.         -c "ParticleTool" 
  53.         -i "particle.xpm"
  54.         particlesCreateItem;
  55.         menuItem -optionBox true -i "particle.xpm"
  56.             -annotation "Particle Tool Option Box"
  57.             -l "Particle Tool Option Box"
  58.             -c "ParticleToolOptions" 
  59.             particlesCreateDialogItem;
  60.  
  61.     menuItem -d true;
  62.  
  63.     menuItem -l "Create Emitter" 
  64.         -annotation "Create Emitter: Create an emitter on the grid or live object"
  65.         -c "CreateEmitter" 
  66.         -dmc "performDynamics 1 Emitter 2"
  67.         -i "posEmitter.xpm"
  68.         createEmitterItem;
  69.         menuItem -optionBox true -i "posEmitter.xpm"
  70.             -annotation "Create Emitter Option Box"
  71.             -l "Create Emitter Option Box"
  72.             -c "CreateEmitterOptions"
  73.             createEmitterDialogItem;
  74.  
  75.     menuItem -l "Emit from Object" 
  76.          -annotation "Add Emitter: Select the object(s) to emit particles"
  77.          -c "EmitFromObject"
  78.          -dmc "performDynamics 0 Emitter 2"
  79.          -i "emitter.xpm"
  80.          addEmitterItem;
  81.         menuItem -optionBox true -i "emitter.xpm"
  82.             -annotation "Emit from Object Option Box"
  83.             -l "Emit from Object Option Box"
  84.             -c "EmitFromObjectOptions"
  85.             addEmitterDialogItem;
  86.  
  87.     menuItem -l "Use Selected Emitter" 
  88.         -annotation "Use Selected Emitter: Select particle object (s), then select emitter to create particles for them"
  89.         -c "UseSelectedEmitter"
  90.         -i "connectEmit.xpm"
  91.         connEmitItem;
  92.  
  93.     menuItem -l "Per-Point Emission Rates" 
  94.          -annotation "Per-Point Emission Rates: Enable per-point rates for selected emitter"
  95.          -c "PerPointEmissionRates"
  96.          -i "emission.xpm"
  97.          addPPItem;
  98.  
  99.     menuItem -divider true;
  100.  
  101.     menuItem -l "Make Collide" 
  102.         -annotation "Make Collide: Select particle object, then select one geometry object to collide with"
  103.         -c "MakeCollide" 
  104.         -dmc "performDynamics 0 Collision 2"
  105.         -i "collision.xpm"
  106.         addCollisionItem;
  107.         menuItem -optionBox true -i "collision.xpm"
  108.             -annotation "Make Collide Option Box"
  109.             -l "Make Collide Option Box"
  110.             -c "MakeCollideOptions"
  111.             addCollisionDialogItem;        
  112.  
  113.     menuItem -l "Particle Collision Events..." 
  114.                 -annotation "Particle Collision Events: Display Collision Events Editor"
  115.                 -c "ParticleCollisionEvents" 
  116.                 -i "collisionEvents.xpm"
  117.                 eventEdWinItem;
  118.  
  119.     menuItem -divider true;
  120.  
  121.     menuItem -l "Goal" 
  122.         -annotation "Goal: Select first the particle and then the goal object"
  123.         -c "Goal" 
  124.         -dmc "performDynamics 0 Goal 2"
  125.         -i "goal.xpm"
  126.         addGoalItem;
  127.         menuItem -optionBox true -i "goal.xpm"
  128.             -annotation "Goal Option Box"
  129.             -l "Goal Option Box"
  130.             -c "GoalOptions"
  131.             addGoalDialogItem;
  132.  
  133.     menuItem -l "Instancer (Replacement)"
  134.         -annotation "Particle Instancer: Select first the replacement objects and then the particle"
  135.         -c "ParticleInstancer"
  136.         -dmc "performDynamics 0 ParticleInstancer 2"
  137.         -i "instancer.xpm"
  138.         particleInstancerItem;
  139.         menuItem -optionBox true 
  140.             -i "instancer.xpm"
  141.             -annotation "Particle Instancer Option Box"
  142.             -l "Particle Instancer Option Box"
  143.             -c "ParticleInstancerOptions"
  144.             particleInstancerDialogItem;
  145.  
  146.     menuItem -l "Sprite Wizard..."
  147.         -annotation "Sprite Wizard: Select the particle object"
  148.         -c "spriteWizardMenu"
  149.         //-i "instancer.xpm"
  150.         spriteWizardItem;
  151.  
  152.     menuItem -l "Connect to Time" 
  153.         -annotation "Connect to Time: Select particle shape"
  154.         -c "ConnectToTime"
  155.         connectToTimeItem;
  156.  
  157. }
  158.